home *** CD-ROM | disk | FTP | other *** search
- From: "Eugene Radchenko" <eugene@qsar.chem.msu.su>
- Message-ID: <ABJRD_mKQD@qsar.chem.msu.su>
- X-Original-Date: Wed, 17 Jan 1996 14:00:35 +0300 (MSK)
- Path: in1.uu.net!bounce-back
- Date: 17 Jan 96 12:02:22 GMT
- Approved: fjh@cs.mu.oz.au
- Newsgroups: comp.std.c++
- Organization: Lab. of Org.Synth., MSU
- X-Mailer: dMail [Demos Mail for DOS v1.23]
- Subject: Enhanced container functionality
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMPzlceEDnX0m9pzZAQG17QF/afZQtkgSehl5YshMwhRNCG5eQtPnG6/A
- 9N74zq+Ump+klTgxjoBKqLzAE8w0236+
- =XKrX
-
- Hi!
- Having used the STL for some time, I have come to greatly missing some nice
- things (and eventually derived Vector<T> from vector<T>, adding them along
- with persistence support).
- First, it is the ability to (easily) flush the entire container
- void erase() { erase(begin(), end()); }
- Second, it is the 'post-factum' equivalents to some constructors
- void assign(size_type n, T t = T());
- void assign(const_iterator first, const_iterator last);
- etc. - putting the container into the same state as the one it would have
- after the respective constructor (with the possible exception of more
- reserved space available).
- I think these features deserve inclusion.
-
- Bye Genie
-
-
- --
- --------------------------------------------------------------------
- Eugene V. Radchenko Research associate, Computer Chemistry
- E-mail: eugene@qsar.chem.msu.su Fax: +7-(095)939-0290
- Ordinary mail: Chair of Organic Chemistry, Department of Chemistry,
- Moscow State University, 119899 Moscow, Russia
- ***************** Disappearances are deceptive *******************
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
- is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
-